<%-------------------------------------------------------------------
 * 页面名称：em_active.jsp
 * 功能描述：激活Email绑定
 * Action  : 
 *
 *-------------------------------------------------------------------
--%>
<%@ page contentType="text/html; charset=utf-8"%>
<%@ page import="cn.agiledata.bank.common.util.WeatherUtil"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-bean.tld" prefix="bean"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="ipb" uri="/WEB-INF/conf/tld/ipb.tld"%>
<%@ taglib prefix="ad" uri="agiledata"%>
<%
	String path = request.getContextPath();
	String email = (String) request.getAttribute("email");
	if (WeatherUtil.getLoingInfoFromSession(request) != null) {
		email = WeatherUtil.getLoingInfoFromSession(request)
		.getAccount().getEmail();
		if (email == null) {
			email = "";
		}
	}
%>
<link href="<%=path%>/css/style.css" rel="stylesheet" type="text/css" />
<link href="<%=path%>/css/newstyle.css" rel="stylesheet" type="text/css" />
<link href="<%=path%>/css/common.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript"
	src='<%=path%>/js/vnv/commonForManage.js' charset="UTF-8"></script>
<script language="javascript">
	function confirm() {
		if(document.getElementById("email").value==""){
			alert("您没有填写电子邮件！");
			return false;
		}
		if(document.getElementById("activecode").value== "") {
			alert("激活码不能为空！");
			return false;
		}
		if (document.all.form1.email.value.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/)==-1){
			alert("电子邮件格式不正确");
			document.getElementById("email").value = "";
			return false;
		}	
		if(document.getElementById("activecode").value.length > 100) {
			alert("激活码过长！");
			document.getElementById("activecode").value = "";
			return false;
		}
		document.all.form1.submit();
	}
</script>
<div id="main">
	<div class="content_right">
		<div style="width:745px;margin-left:10px;">
			<div class="titleinfo">
				激活Email绑定
			</div>
			<div class="edit_pass">
				<table width="100%" border="0" align="center" cellpadding="5"
					cellspacing="1">
					<form action="<%=path%>/page/myspace/mailActive.do" name="form1"
						method="post">
					<tr>
						<td height="55" colspan="2" class="font_blue">
							<span class="orangefont14b">
								如果您已经获得了绑定该Email的激活码，请进行下面的操作： </span>

						</td>
					</tr>
					<tr>
						<td width="22%" align="right">
							<span class="orang12b">* </span>您的Email地址：
						</td>
						<td width="78%" class="font_blue">
							<input name="email" id="email" alt="Emial地址" maxlength="255"
								size="40" class="inputStyle" value="<%=email%>" />
						</td>
					</tr>
					<tr>
						<td align="right">
							<span class="orang12b">*</span> 收到的激活码：
						</td>
						<td class="font_blue">
							<input name="activecode" id="activecode" alt="激活码"
								maxlength="255" class="inputStyle" />
							<a href="#" onclick="confirm();" class="dropblue14b">激活Email绑定</a>
						</td>
					</tr>
					</form>
					<tr>
						<td align="right">
							&nbsp;
						</td>
						<td class="font_blue">
							<table width="100%" border="0" align="center" cellpadding="7"
										cellspacing="1" bgcolor="#f9e277" style="margin:10px 0;">
										<tr>
											<td bgcolor="#fffdf5">
												<table width="100%" border="0" cellpadding="3"
													cellspacing="0">
													<tr>
														<td width="3%" height="25" valign="top"
															style="border-bottom:1px solid #ccc;"></td>
														<td width="97%" align="left" class="red12b"
															style="border-bottom:1px solid #ccc;">
															特别提醒
														</td>
													</tr>
											<tr>
												<td valign="top">
													&nbsp;
												</td>
												<td align="left" class="font_gray">
													如果您
													<span class="redColor12px"></span>没有收到激活信
													<span class="text9green">请点击下面链接</span>
												</td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
						</td>
					</tr>
					<tr>
						<td align="right">
							&nbsp;
						</td>
						<td class="font_blue">
							<span class="orang12b"><a href="<%=path%>/toActimail.do"
								class="dropblue14b">没有收到激活信？</a> </span>
							<br />
						</td>
					</tr>
					<tr>
						<td height="55" align="right">
							&nbsp;
						</td>
						<td class="font_blue">
							<input name="button" type="button" class="button_style"
								onclick="loading('<%=path%>/route.do?modual=space$account');"
								value="返 回" />
						</td>
					</tr>
				</table>
			</div>
		</div>
	</div>
</div>

